/**
 * 
 */
package com.lazyshopkeeper.front.common;

import java.util.HashMap;
import java.util.Map;

/**
 * 系统常量
 * @author Yockii
 *
 */
public class Constant {
    //项目收费代码
	public static String ARTICLE_CODE = null;
	//AppKey 1021164571
	public static String APP_KEY = "1021164571";
	//AppSercet
	public static String APP_SERCET = "sandboxa475deb192e9784b1863f4445";//"53dd7f8a475deb192e9784b1863f4445";
	
	public static String API_URL = "http://gw.api.tbsandbox.com/router/rest";
	public static String OAUTH_API_URL = "https://eco.taobao.com/router/rest";
	// Oauth2.0 api url https://eco.taobao.com/router/rest
	//授权地址
	public static String OAUTH_URL = "https://oauth.taobao.com/token";
	
	//获取授权码的地址
	public static String LOGIN_URL = null;
	
	// 收费项目code对应版本映射
	public static Map<String, String> vasMapper = new HashMap<String, String>(); 
	
	
	//sessionKey的key
	public final static String SESSION_KEY = "sessionKey";
	// 用户昵称
	public static final String NICK = "nick";
	//页码最大值
	public final static int PAGE_NO_MAX = 101;
	//每页请求最大量
	public final static long PAGE_SIZE_MAX = 200;
	
	//店内推广模板名称
	public final static String INNERSTORE_TEMP="innerstore";
	
	
	//系统内部使用的一些常量/////////////////////////////////////////
	public static final String USER_LEVEL = "level";

	//api调用时要获取的字段名定义/////////////////////////////////////////////////////
	public static final String FIELDS_USER = "user_id,nick,sex,seller_credit,birthday,alipay_account,avatar";
	public static final String FILDS_ITEM = "detail_url,num_iid,title,price,type,sku,props_name,freight_payer";
	public static final String FILDS_ITEM_LIST = "num_iid,title,price,num,props,valid_thru";
	public static final String FILDS_ITEMCAT = "cid,parent_cid,name,is_parent,status,sort_order";
	public static final String FILDS_SHOP = "sid,cid,title,nick,desc,bulletin,pic_path,created,modified,shop_score";
}
